<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="http://netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
<title>lecture2a</title>
<style>
    div { margin-top: 30px; padding: 8px; border: solid 1px #ddd; }
</style>
</head>
<body>

<div class="container">
    <h1>JSTL Test3</h1>

    <div>
        <c:forEach var="user" items="${ list }">
            ${ user.name }, ${ user.age } <br />
        </c:forEach>
    </div>

    <div>
        <c:forEach var="i" begin="1" end="4">
            <c:set var="sum" value="${ sum + i }" />
            i = ${ i }, sum = ${ sum } <br />
        </c:forEach>
    </div>

    <div>
        <c:forTokens var="s" items="one,two,three,four" delims=",">
            ${ s } <br />
        </c:forTokens>
    </div>

    <div>
        <a href="/lecture2a/index.jsp" class="btn">index.jsp</a>
    </div>

</div>

</body>
</html>